//
//  UIView+LoadFromNib.m
//  dingdang
//
//  Created by 阮 沧晖 on 15/7/11.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import "UIView+LoadFromNib.h"

@implementation UIView (LoadFromNib)

+ (id)loadFromNib
{
    NSString *xibName = NSStringFromClass([self class]);
    NSArray *nib = [[NSBundle mainBundle]loadNibNamed:xibName owner:self options:nil];
    UIView *tmpCustomView = [nib objectAtIndex:0];
    return tmpCustomView;
}

@end
